﻿<PageFunction
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
    x:Class="SponsorshipManager.Client.View.Login"
    x:TypeArguments="sys:Boolean"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    Title="Login" 
    RemoveFromJournal="True">
    <Grid>
        <StackPanel Grid.Row="1" Grid.Column="1" Margin="80,15,25,25" HorizontalAlignment="left">
            <Label Content="Username:" />
            <TextBox Name="Username" Width="200" HorizontalAlignment="Left" KeyDown="LoginKeyDown"></TextBox>
            <Label Content="Password:"/>
            <PasswordBox Name="Password" Width="200" HorizontalAlignment="Left" KeyDown="LoginKeyDown"></PasswordBox>
            <StackPanel Orientation="Horizontal" Margin="0,25,0,0">
                <Button Content="Ok" HorizontalAlignment="left" Width="50" IsDefault="True" Margin="5" Click="OKButton_Click" />
                <Button Content="Cancel" HorizontalAlignment="left" Width="50" IsDefault="True" Margin="5" Click="CancelButton_Click" />
            </StackPanel>
            <TextBlock>
                <Hyperlink NavigateUri="http://www.google.com">I've forgotten my password</Hyperlink>
            </TextBlock>
            <Label Name="ErrorMessage" Visibility="Hidden">Please check your username and password and try again.</Label>
        </StackPanel>
    </Grid>
</PageFunction>
